package logic

import (
	"tiktok/models"
)

// Msg 定义信息字段

const (
	ParseTokenErr   string = "web.ParseToken:解析token失败..."
	ServerErr       string = "服务器内部错误"
	GetFollowErr    string = "db.select:关注列表查询失败..."
	SelectSuccess   string = "查询成功"
	ParseErr        string = "格式转化错误"
	FocusSuccess    string = "关注成功"
	FocusFailure    string = "关注失败,已经关注该作者"
	UnfollowSuccess        = "取关成功"
)

// followListMsg 返回Json格式串——重要
type followListMsg struct {
	models.Status
	UserList []models.User `json:"user_list"`
}

// UserList 用来获取关注列表或者粉丝列表的字符串
type UserList struct {
	UserList      string `gorm:"user_list"`
	FollowCount   int64  `gorm:"follow_count"`
	FollowerCount int64  `gorm:"follower_count"`
}
